<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <title>StudentWorld</title>
    <link href="style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<?php 

//nastavitev seje
session_start();

$streznik = $_SERVER["HTTP_HOST"];  
			
$pot = rtrim(dirname($_SERVER["PHP_SELF"]), "/\\");



if (isset($_SESSION['uporabnik'])) {
    header( "Location: http://".$streznik."".$pot."/prva.php" );
    exit;
}

 else if (!isset($_SESSION['uporabnik'])) {

?>

    <div id="wrapper">
    	<div id="header-wrapper">
        
    		<?php include_once("glava.php"); ?>
            
    	</div>
    	<!-- end #header -->
    	<div id="page">
    		<div id="page-bgtop">
    			<div id="page-bgbtm">
    				<div id="content">
    					<div class="post">
    						<h2 class="title">Dobrodošli pri StudentWorld</h2>
    						<div style="clear: both;">&nbsp;</div>
    						<div class="entry">
                            <p>Če še niste registrirani, lahko to storite v spodnjem obrazcu</p>
                            <?php
                            
                            if(isset($_GET['napaka'])){
                                    if($_GET['napaka']=='neuspeh')
                                echo "Niste izpolnili vseh polj";
                                }

?>
                            <form method="post" action="registracijaUspeh.php">
                                <div>
    							<table>
                                    <tr>
                                        <td>Ime:</td>
                                        <td><input type="text" name="ime" id="ime" value="" /></td>
                                    </tr>
                                    <tr>
                                        <td>Priimek:</td>
                                        <td><input type="text" name="priimek" id="priimek" value="" /></td>
                                    </tr>
                                    <tr>
                                        <td>Datum rojstva: (LLLL-MM-DD)</td>
                                        <td><input type="text" name="datumRojstva" id="datumRojstva" value="" /></td>
                                    </tr>
                                    <tr>
                                        <td>Naslov:</td>
                                        <td><input type="text" name="naslov" id="naslov" value="" /></td>
                                    </tr>
                                    <tr>
                                        <td>Pošta:</td>
                                        <td><input type="text" name="posta" id="posta" value="" /></td>
                                    </tr>
                                    <tr>
                                        <td>Email:</td>
                                        <td><input type="text" name="email" id="email" value="" /></td>
                                    </tr>
                                    <tr>
                                        <td>Telefon:</td>
                                        <td><input type="text" name="telefon" id="telefon" value="" /></td>
                                    </tr>
                                    <tr>
                                        <td>Uporabniško ime:</td>
                                        <td><input type="text" name="upIme" id="upIme" value="" /></td>
                                    </tr>
                                    <tr>
                                        <td>Geslo:</td>
                                        <td><input type="password" name="geslo" id="geslo" value="" /></td>
                                    </tr>
                                    </table>
                                    <p><input type="submit" id="registracija" value="Registracija" /></p>
                                </div>
                                </form>
                                <p><a href="index.php">Nazaj na prijavno okno</a></p>
    						</div>
    					</div>
    					
    					<div style="clear: both;">&nbsp;</div>
    				</div>
    				<!-- end #content -->
    				<div id="sidebar">
    					<ul>
    						<li>
    							<div style="clear: both;">&nbsp;</div>
    						</li>
    					</ul>
    				</div>
    				<!-- end #sidebar -->
    				<div style="clear: both;">&nbsp;</div>
    			</div>
    		</div>
    	</div>
    	<!-- end #page -->
    </div>
    <?php include_once("noga.php"); } ?>
    <!-- end #footer -->
</body>
</html>
